<?php

/**
 * SweetPHP <br />
 * <p><b>People</b></p>
 * @package SweetPHP
 * @package Apps/Model/Examples
 * @author sweetphp
 * <p>Exemplo de model, objeto<p><br />
 */

/** @Table("People") */
class People extends Model {

    /** @Column("{'name':'id', 'type':'int',''length':'11', 'primaryKey':'true', 'unique':'true'}") */
    public $id;
    
    /** @Column("{'name':'name', 'type':'string',''length':'255'}") */
    public $name;

    public function __construct() {
        $this->id = -1;
        $this->name = "";
        parent::__construct();
    }

    public function getId() {
        return $this->id;
    }

    public function setId($var = 0) {
        return $this->id = $var;
    }
    
    public function getName() {
        return $this->name;
    }

    public function setName($var = "") {
        return $this->name = $var;
    }

}
